home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / OvCata.swf / scripts / frame_3 / PlaceObject2_272_322 / CLIPACTIONRECORD onClipEvent(enterFrame).as < prev    next >
Encoding:
Text File  |  2005-08-04  |  2.7 KB  |  130 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.level1._x > 298)
  3.    {
  4.       _root.level1._x = 298;
  5.    }
  6.    trace(_root.score.score1);
  7.    if(_root.endlevel3)
  8.    {
  9.       if(!_root.inair)
  10.       {
  11.          if(_root.level1._x > 100)
  12.          {
  13.             if(_root.level1._x < 180)
  14.             {
  15.                _root.jumpsuccess = false;
  16.             }
  17.          }
  18.          else
  19.          {
  20.             _root.jumpsuccess = true;
  21.          }
  22.          if(_root.level1._x > 180)
  23.          {
  24.             if(_root.level1._x < 300)
  25.             {
  26.                _root.jumpsuccess = true;
  27.             }
  28.          }
  29.          if(_root.level1._x > 0)
  30.          {
  31.             if(_root.level1._x < 70)
  32.             {
  33.                _root.jumpsuccess = true;
  34.             }
  35.          }
  36.          else
  37.          {
  38.             _root.jumpsuccess = false;
  39.          }
  40.          if(_root.level1._x > -225)
  41.          {
  42.             if(_root.level1._x < -120)
  43.             {
  44.                _root.jumpsuccess = true;
  45.             }
  46.          }
  47.          else
  48.          {
  49.             _root.jumpsuccess = false;
  50.          }
  51.          if(_root.level1._x > -400)
  52.          {
  53.             if(_root.level1._x < -300)
  54.             {
  55.                _root.jumpsuccess = true;
  56.             }
  57.          }
  58.          else
  59.          {
  60.             _root.jumpsuccess = false;
  61.          }
  62.          if(_root.level1._x > -630)
  63.          {
  64.             if(_root.level1._x < -540)
  65.             {
  66.                _root.jumpsuccess = true;
  67.             }
  68.          }
  69.          else
  70.          {
  71.             _root.jumpsuccess = false;
  72.          }
  73.          if(_root.level1._x > -850)
  74.          {
  75.             if(_root.level1._x < -760)
  76.             {
  77.                _root.jumpsuccess = true;
  78.             }
  79.          }
  80.          else
  81.          {
  82.             _root.jumpsuccess = false;
  83.          }
  84.          if(_root.level1._x > -1120)
  85.          {
  86.             if(_root.level1._x < -980)
  87.             {
  88.                _root.jumpsuccess = true;
  89.             }
  90.          }
  91.          else
  92.          {
  93.             _root.jumpsuccess = false;
  94.          }
  95.          if(_root.level1._x < -1120)
  96.          {
  97.             _root.jumpsuccess = true;
  98.          }
  99.          if(!_root.jumpsuccess)
  100.          {
  101.             _root.sheep.gotoAndStop(16);
  102.          }
  103.       }
  104.    }
  105.    if(_root.endlevel2)
  106.    {
  107.       if(_root.level1._x < -1000)
  108.       {
  109.          _root.sheepupgrade1 = true;
  110.          _root.level1.larmour._visible = false;
  111.       }
  112.    }
  113.    if(_root.levmoveR)
  114.    {
  115.       _root.level1._x -= 3;
  116.    }
  117.    if(_root.levmoveL)
  118.    {
  119.       _root.level1._x += 3;
  120.    }
  121.    if(_root.jumpR)
  122.    {
  123.       _root.level1._x -= 13;
  124.    }
  125.    if(_root.jumpL)
  126.    {
  127.       _root.level1._x += 13;
  128.    }
  129. }
  130.